const { auth, checkOwner } = require('../controllers/middleware')
const router = require('koa-router')()
router.prefix('/resumes')

const {
    find,
    findById,
    create,
    update
} = require('../controllers/Resumes')


router.get('/', find)
router.get('/:id', findById)
router.post('/', auth, create)
router.patch('/:id', update)

module.exports = router